package com.misolab.utility.speedmate.activity;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Handler.Callback;
import android.os.Message;

import com.misolab.utility.speedmate.R;

public class SampleActivity extends Activity {

	Handler mHandler = new Handler(new Callback() {
		
		@Override
		public boolean handleMessage(Message msg) {
			if (msg.what == 100) {
				SampleActivity.this.finish();
				return true;
			}
			return false;
		}
	});
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.sample);
	}

	@Override
	protected void onResume() {
		super.onResume();
		
		mHandler.sendEmptyMessageDelayed(100, 3000);
	}

	
	
}
